package com.example.musicplayer.dao

import android.content.Context
import com.example.musicplayer.model.Song

class MusicRepository(private val context: Context) {
    private val musicDAO: MusicDAO by lazy { MusicDAOImpl(context) }

    fun addSong(song: Song) {
        musicDAO.addSong(song)
    }

    fun deleteSong(songId: Int) {
        musicDAO.deleteSong(songId)
    }

    fun getSongsByCategoryId(categoryId: Int): List<Song> {
        return musicDAO.getSongsByCategoryId(categoryId)
    }
}